import request from '../request'


//用户端-查询地址列表
export const queryAddressList = params => request.globalRequest(`/v3/app/userAddress/queryAddressList`, 'GET', params)

//用户端-创建地址
export const createAddress = params => request.globalRequest(`/v3/app/userAddress/createAddress`, 'POST', params)

//用户端-修改地址
export const updateAddress = params => request.globalRequest(`/v3/app/userAddress/updateAddress`, 'PUT', params)

//用户端-查询地址详情
export const queryAddressDetail = params => request.globalRequest(`/v3/app/userAddress/queryAddressDetail`, 'GET', params)

//用户端-删除地址
export const deleteAddress = params => request.globalRequest(`/v3/app/userAddress/deleteAddress`, 'DELETE', params)